﻿<%@ Control Language="C#" ClassName="PatHistoricAttributeByEntityFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataEntityName" runat="server" Text="Entity Name:" AssociatedControlID="dataEntityName" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataEntityName" DataSourceID="EntityNamePatHistoricEntityDataSource" DataTextField="EntityDescription" DataValueField="EntityName" SelectedValue='<%# Bind("EntityName") %>' AppendNullItem="true" Required="true" NullItemText="< Seleccione ...>" ErrorText="Required" />
					<data:PatHistoricEntityDataSource ID="EntityNamePatHistoricEntityDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAttibuteName" runat="server" Text="Attibute Name:" AssociatedControlID="dataAttibuteName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAttibuteName" Text='<%# Bind("AttibuteName") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataAttibuteName" runat="server" Display="Dynamic" ControlToValidate="dataAttibuteName" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAttributeLabel" runat="server" Text="Attribute Label:" AssociatedControlID="dataAttributeLabel" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAttributeLabel" Text='<%# Bind("AttributeLabel") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataAttributeLabel" runat="server" Display="Dynamic" ControlToValidate="dataAttributeLabel" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAttributeOrder" runat="server" Text="Attribute Order:" AssociatedControlID="dataAttributeOrder" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAttributeOrder" Text='<%# Bind("AttributeOrder") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataAttributeOrder" runat="server" Display="Dynamic" ControlToValidate="dataAttributeOrder" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataAttributeOrder" runat="server" Display="Dynamic" ControlToValidate="dataAttributeOrder" ErrorMessage="Invalid value" MaximumValue="255" MinimumValue="0" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataActive" runat="server" Text="Active:" AssociatedControlID="dataActive" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataActive" SelectedValue='<%# Bind("Active") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Si" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCreationLogin" runat="server" Text="Creation Login:" AssociatedControlID="dataCreationLogin" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCreationLogin" Text='<%# Bind("CreationLogin") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCreationLogin" runat="server" Display="Dynamic" ControlToValidate="dataCreationLogin" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCreationDate" runat="server" Text="Creation Date:" AssociatedControlID="dataCreationDate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCreationDate" Text='<%# Bind("CreationDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataCreationDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataCreationDate" runat="server" Display="Dynamic" ControlToValidate="dataCreationDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataModificationLogin" runat="server" Text="Modification Login:" AssociatedControlID="dataModificationLogin" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataModificationLogin" Text='<%# Bind("ModificationLogin") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataModificationLogin" runat="server" Display="Dynamic" ControlToValidate="dataModificationLogin" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataModificationDate" runat="server" Text="Modification Date:" AssociatedControlID="dataModificationDate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataModificationDate" Text='<%# Bind("ModificationDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataModificationDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataModificationDate" runat="server" Display="Dynamic" ControlToValidate="dataModificationDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


